package base

/**
 * in And range
 */
fun main(args: Array<String>) {
    val x = 4
    val y = 10
    if (x in 1..10)
        println("OK")

    if (x in 1 until y-1)
        println("OK1")

    val arr = arrayListOf<String>()
    arr.add("aaa")
    arr.add("bbb")
    arr.add("ccc")

    if ("aaa" in arr)
        println("aaa In")
    else
        print("aaa not in")

}